package com.boscloud.controller;

import com.boscloud.pojo.StorageLocation;
import com.boscloud.pojo.CarNo;
import com.boscloud.service.CarNoServices;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import com.boscloud.service.StorageLocationService;
import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@CrossOrigin //允许跨域
@RestController
public class CarNoController {
    @Autowired
    private CarNoServices CarNoServices;
    @PostMapping("/CarNoList")//扫描条码--获取车牌号信息
    public List<CarNo> getCarNoList(@RequestBody Map<String, Object> params) throws IOException {
        Map<String, String> headers = new HashMap<String, String>();
        headers.put("PORTID","ITMS015");//接口ID
        return CarNoServices.getCarNoList(params,headers);
    }
    @PostMapping("/CarNoListAll")//扫描条码--获取车牌号信息
    public List<CarNo> getCarNoListAll(@RequestBody Map<String, Object> params) throws IOException {
        Map<String, String> headers = new HashMap<String, String>();
        headers.put("PORTID","ITMS028");//接口ID
        return CarNoServices.getCarNoList(params,headers);
    }

}